import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { registerStore } from '@/stores/index'
import ElementPlus from 'element-plus'
import App from './App.vue'
import router from './router'
import VDistpicker from 'v-distpicker'

import 'element-plus/dist/index.css'
import { VueMasonryPlugin } from 'vue-masonry'
import locale from 'element-plus/lib/locale/lang/zh-cn'

const app = createApp(App)

app.use(createPinia())
// 注册pinia
registerStore()
app.use(router)
app.use(ElementPlus,{locale})
app.use(VueMasonryPlugin)

app.mount('#app')
